﻿namespace Infrastructure.Utils
{
    public class EnvironmentVariableHelper
    {
        /// <summary>
        /// 当前环境是否为生产模式
        /// </summary>
        public static bool IsAspNetCoreProduction => Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") == "Production";
        public static string NetCoreEnvironment => Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT");
        public static string HostName => Environment.GetEnvironmentVariable("HOSTNAME");
    }
}
